//
//  HttpTest.m
//  Pizza
//
//  Created by ghwang on 15/3/30.
//  Copyright (c) 2015年 sendInfo. All rights reserved.
//

#import "HttpTest.h"

@implementation HttpTest
DEF_SINGLETON(HttpTest)

- (void)updatetoken
{

    NSDictionary *dic = @{@"token":@"11111111111",@"userId":@"2353",@"channelId":@""};
    self.MSG(HttpAPI.UPDATETOKEN).INPUT(@"body",dic);

}
- (void)login
{

    NSDictionary *dic = @{@"mobile":@"15088703801",@"passwd":@"1111111"};
    self.MSG(HttpAPI.LOGIN).INPUT(@"body",dic);

}
- (void)getVerCode
{

    NSDictionary *dic = @{@"mobile":@"15088703801",@"sign":@"pishajie"};
    self.MSG(HttpAPI.GET_VERCODE).INPUT(@"body",dic);

}
- (void)registeraccount
{

    NSDictionary *dic = @{@"mobile":@"15088703801",@"passwd":@"111111",@"code":@"Y",@"from":@""};
    self.MSG(HttpAPI.REGISTER).INPUT(@"body",dic);
}
- (void)logout
{

    NSDictionary *dic = @{@"token":@"15088703801"};
    self.MSG(HttpAPI.LOGOUT).INPUT(@"body",dic);
}
- (void)resetPasswd{

    NSDictionary *dic = @{@"mobile":@"15088703801",@"verificationCode":@"",@"password":@""};
    self.MSG(HttpAPI.resetpassword).INPUT(@"body",dic);
}
- (void)randomcode
{

    NSDictionary *dic = @{};
    self.MSG(HttpAPI.randomcode).INPUT(@"body",dic);
}
- (void)validate
{

    NSDictionary *dic = @{@"token":@"",@"mobile":@"",@"code":@""};
    self.MSG(HttpAPI.validate).INPUT(@"body",dic);
}
- (void)shophome
{
    NSDictionary *dic = @{@"shopId":@"",@"productPageSize":@"",@"pageNumber":@"",@"token":@""};
    self.MSG(HttpAPI.shop_home).INPUT(@"body",dic);

}
- (void)products
{

    NSDictionary *dic = @{@"shopId":@"",
                          @"pageSize":@"",
                          @"pageNumber":@"",
                          @"token":@"",
                          @"categoryId":@"",
                          @"keywords":@""};
    
    self.MSG(HttpAPI.products).INPUT(@"body",dic);
}
- (void)getAddress
{
    NSDictionary *dic = @{@"token":@"",@"pageNumber":@"",@"pageSize":@""};
    self.MSG(HttpAPI.address).INPUT(@"body",dic);

}
- (void)addAddress
{

    NSDictionary *dic = @{@"token":@"",@"name":@"",@"mobile":@"",@"address":@"",@"remark":@""};
    self.MSG(HttpAPI.address_add).INPUT(@"body",dic);
}
- (void)deladdress
{

    NSDictionary *dic = @{@"token":@"",@"id":@""};
    self.MSG(HttpAPI.address_del).INPUT(@"body",dic);
}
- (void)modifyaddress
{

    NSDictionary *dic = @{@"token":@"",@"id":@"",@"name":@"",@"address":@"",@"mobile":@"",@"Is_default":@""};
    self.MSG(HttpAPI.address_update).INPUT(@"body",dic);
}
- (void)orders
{

    NSDictionary *dic = @{@"token":@"",@"pageSize":@"",@"pageNumber":@"",@"stauts":@""};
    self.MSG(HttpAPI.current_order).INPUT(@"body",dic);
}
- (void)historyOrders
{
    NSDictionary *dic = @{@"token":@"",@"pageSize":@"",@"pageNumber":@""};
    self.MSG(HttpAPI.history_order).INPUT(@"body",dic);

}
@end
